package cn.cdeden.knowledge.service;

import cn.cdeden.common.core.utils.page.TableDataInfo;
import cn.cdeden.knowledge.domain.TeamFilesReview;
import cn.cdeden.knowledge.domain.dto.TeamFilesReviewDto;
import cn.cdeden.knowledge.domain.dto.TeamFilesReviewQueryParam;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Set;

/**
* @author Chen
* @date 2023-11-23
*/
public interface TeamFilesReviewService extends IService<TeamFilesReview> {

    static final String CACHE_KEY = "teamFilesReview";

    /**
    * 查询数据分页
    * @param query 条件
    * @param pageable 分页参数
    * @return PageInfo<TeamFilesReviewDto>
    */
    TableDataInfo<TeamFilesReviewDto> queryAll(TeamFilesReviewQueryParam query, Pageable pageable);

    /**
    * 查询所有数据不分页
    * @param query 条件参数
    * @return List<TeamFilesReviewDto>
    */
    List<TeamFilesReviewDto> queryAll(TeamFilesReviewQueryParam query);

    TeamFilesReview getById(Long id);
    TeamFilesReviewDto findById(Long id);

    /**
     * 插入一条新数据。
     */
    boolean insert(TeamFilesReviewDto resources);
    boolean updateById(TeamFilesReviewDto resources);
    boolean deleteById(Long id);
    boolean deleteByIds(Set<Long> ids);

    /**
    * 导出数据
    * @param all 待导出的数据
    * @param response /
    * @throws IOException /
    */
    // void download(List<TeamFilesReviewDto> all, HttpServletResponse response) throws IOException;
}
